/* 全局样式 */
* {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* 通用工具类 */
.flex {
	display: flex;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

/* 间距工具类 */
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }

.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }

.ml-5 { margin-left: 5px; }
.ml-10 { margin-left: 10px; }
.ml-15 { margin-left: 15px; }
.ml-20 { margin-left: 20px; }

.mr-5 { margin-right: 5px; }
.mr-10 { margin-right: 10px; }
.mr-15 { margin-right: 15px; }
.mr-20 { margin-right: 20px; }

.p-5 { padding: 5px; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }

/* 字体大小 */
.font-12 { font-size: 12px; }
.font-14 { font-size: 14px; }
.font-16 { font-size: 16px; }
.font-18 { font-size: 18px; }
.font-20 { font-size: 20px; }

/* 字体粗细 */
.font-normal { font-weight: normal; }
.font-bold { font-weight: bold; }
.font-600 { font-weight: 600; }

/* 颜色 */
.color-primary { color: #667eea; }
.color-success { color: #52c41a; }
.color-warning { color: #faad14; }
.color-danger { color: #ff4d4f; }
.color-info { color: #1890ff; }

.color-text { color: #333; }
.color-text-secondary { color: #666; }
.color-text-placeholder { color: #999; }

/* 背景色 */
.bg-primary { background-color: #667eea; }
.bg-success { background-color: #52c41a; }
.bg-warning { background-color: #faad14; }
.bg-danger { background-color: #ff4d4f; }
.bg-info { background-color: #1890ff; }

.bg-white { background-color: #fff; }
.bg-gray { background-color: #f5f5f5; }

/* 边框圆角 */
.border-radius-5 { border-radius: 5px; }
.border-radius-10 { border-radius: 10px; }
.border-radius-15 { border-radius: 15px; }
.border-radius-20 { border-radius: 20px; }

/* 阴影 */
.shadow-sm {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.shadow-lg {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 渐变背景 */
.gradient-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
	background: linear-gradient(135deg, #52c41a 0%, #1890ff 100%);
}

.gradient-warning {
	background: linear-gradient(135deg, #faad14 0%, #ff4d4f 100%);
}

/* 透明度 */
.opacity-90 { opacity: 0.9; }
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }
.opacity-50 { opacity: 0.5; }

/* 隐藏显示 */
.hidden { display: none !important; }
.visible { display: block !important; }

/* 位置 */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* 宽高 */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* 按钮样式 */
.btn {
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.btn-outline {
	background: transparent;
	border: 1px solid #667eea;
	color: #667eea;
}

.btn-small {
	padding: 8px 16px;
	font-size: 14px;
}

.btn-large {
	padding: 16px 32px;
	font-size: 18px;
}

/* 卡片样式 */
.card {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 15px;
	margin-bottom: 15px;
}

.card-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

/* 输入框样式 */
.input {
	width: 100%;
	padding: 12px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	background: #fff;
}

.input:focus {
	border-color: #667eea;
	outline: none;
}

/* 列表样式 */
.list-item {
	padding: 15px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
}

.list-item:last-child {
	border-bottom: none;
}

/* 标签样式 */
.tag {
	display: inline-block;
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 4px;
	background: #f0f0f0;
	color: #666;
}

.tag-primary {
	background: #667eea;
	color: #fff;
}

.tag-success {
	background: #52c41a;
	color: #fff;
}

.tag-warning {
	background: #faad14;
	color: #fff;
}

.tag-danger {
	background: #ff4d4f;
	color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
	.hide-mobile {
		display: none !important;
	}
}

@media (min-width: 769px) {
	.hide-desktop {
		display: none !important;
	}
} 